const seq = require('../connections/mysql_connect'),
      { STRING, INT, DECIMAL, TEXT } = require('../../config/db_type_config');

const ResolveRecord = seq.define('resolve_record', {
  pid: {
    content: '',
    type: INT,
    allowNull: false
  },
  submit_result: {
    content: '',
    type: STRING,
    allowNull: false
  },
  submit_code: {
    content: '',
    type: TEXT,
    allowNull: false
  },
  problemTypeId: {
    content: '',
    type: INT,
    allowNull: false
  },
  userId: {
    content: '',
    type: INT,
    allowNull: false
  },
  problemId: {
    content: '',
    type: INT,
    allowNull: false
  }
})

// status: {
//   comment: 'agency_info_status', //控制是否显示
//   type: INT,
//   defaultValue: 1,
//   allowNull: true //设初始值要同时设置非空
// }

module.exports = ResolveRecord;